Optimal. Leaf size=76 \[ \frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-\frac{b d^3 n \log (x)}{6 e}-\frac{1}{4} b d^2 n x^2-\frac{1}{8} b d e n x^4-\frac{1}{36} b e^2 n x^6 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0678022, antiderivative size = 76, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {261, 2334, 12, 266, 43} \[ \frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-\frac{b d^3 n \log (x)}{6 e}-\frac{1}{4} b d^2 n x^2-\frac{1}{8} b d e n x^4-\frac{1}{36} b e^2 n x^6 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 261
Rule 2334
Rule 12
Rule 266
Rule 43
Rubi steps
\begin{align*} \int x \left (d+e x^2\right )^2 \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-(b n) \int \frac{\left (d+e x^2\right )^3}{6 e x} \, dx\\ &=\frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-\frac{(b n) \int \frac{\left (d+e x^2\right )^3}{x} \, dx}{6 e}\\ &=\frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-\frac{(b n) \operatorname{Subst}\left (\int \frac{(d+e x)^3}{x} \, dx,x,x^2\right )}{12 e}\\ &=\frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}-\frac{(b n) \operatorname{Subst}\left (\int \left (3 d^2 e+\frac{d^3}{x}+3 d e^2 x+e^3 x^2\right ) \, dx,x,x^2\right )}{12 e}\\ &=-\frac{1}{4} b d^2 n x^2-\frac{1}{8} b d e n x^4-\frac{1}{36} b e^2 n x^6-\frac{b d^3 n \log (x)}{6 e}+\frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{6 e}\\ \end{align*}
Mathematica [A] time = 0.035075, size = 85, normalized size = 1.12 \[ \frac{1}{72} x^2 \left (12 a \left (3 d^2+3 d e x^2+e^2 x^4\right )+12 b \left (3 d^2+3 d e x^2+e^2 x^4\right ) \log \left (c x^n\right )-b n \left (18 d^2+9 d e x^2+2 e^2 x^4\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.204, size = 433, normalized size = 5.7 \begin{align*}{\frac{b{x}^{2} \left ({e}^{2}{x}^{4}+3\,de{x}^{2}+3\,{d}^{2} \right ) \ln \left ({x}^{n} \right ) }{6}}-{\frac{i}{4}}\pi \,b{d}^{2}{x}^{2}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -{\frac{i}{12}}\pi \,b{e}^{2}{x}^{6} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}-{\frac{i}{4}}\pi \,bde{x}^{4} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}-{\frac{i}{4}}\pi \,bde{x}^{4}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) b{e}^{2}{x}^{6}}{6}}-{\frac{b{e}^{2}n{x}^{6}}{36}}+{\frac{a{e}^{2}{x}^{6}}{6}}+{\frac{i}{4}}\pi \,b{d}^{2}{x}^{2}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}+{\frac{i}{4}}\pi \,b{d}^{2}{x}^{2} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +{\frac{i}{12}}\pi \,b{e}^{2}{x}^{6} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -{\frac{i}{12}}\pi \,b{e}^{2}{x}^{6}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) bde{x}^{4}}{2}}-{\frac{bden{x}^{4}}{8}}+{\frac{ade{x}^{4}}{2}}+{\frac{i}{4}}\pi \,bde{x}^{4} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -{\frac{i}{4}}\pi \,b{d}^{2}{x}^{2} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+{\frac{i}{12}}\pi \,b{e}^{2}{x}^{6}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}+{\frac{i}{4}}\pi \,bde{x}^{4}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}+{\frac{\ln \left ( c \right ) b{d}^{2}{x}^{2}}{2}}-{\frac{b{d}^{2}n{x}^{2}}{4}}+{\frac{a{d}^{2}{x}^{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15963, size = 135, normalized size = 1.78 \begin{align*} -\frac{1}{36} \, b e^{2} n x^{6} + \frac{1}{6} \, b e^{2} x^{6} \log \left (c x^{n}\right ) + \frac{1}{6} \, a e^{2} x^{6} - \frac{1}{8} \, b d e n x^{4} + \frac{1}{2} \, b d e x^{4} \log \left (c x^{n}\right ) + \frac{1}{2} \, a d e x^{4} - \frac{1}{4} \, b d^{2} n x^{2} + \frac{1}{2} \, b d^{2} x^{2} \log \left (c x^{n}\right ) + \frac{1}{2} \, a d^{2} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.28354, size = 274, normalized size = 3.61 \begin{align*} -\frac{1}{36} \,{\left (b e^{2} n - 6 \, a e^{2}\right )} x^{6} - \frac{1}{8} \,{\left (b d e n - 4 \, a d e\right )} x^{4} - \frac{1}{4} \,{\left (b d^{2} n - 2 \, a d^{2}\right )} x^{2} + \frac{1}{6} \,{\left (b e^{2} x^{6} + 3 \, b d e x^{4} + 3 \, b d^{2} x^{2}\right )} \log \left (c\right ) + \frac{1}{6} \,{\left (b e^{2} n x^{6} + 3 \, b d e n x^{4} + 3 \, b d^{2} n x^{2}\right )} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 5.68267, size = 151, normalized size = 1.99 \begin{align*} \frac{a d^{2} x^{2}}{2} + \frac{a d e x^{4}}{2} + \frac{a e^{2} x^{6}}{6} + \frac{b d^{2} n x^{2} \log{\left (x \right )}}{2} - \frac{b d^{2} n x^{2}}{4} + \frac{b d^{2} x^{2} \log{\left (c \right )}}{2} + \frac{b d e n x^{4} \log{\left (x \right )}}{2} - \frac{b d e n x^{4}}{8} + \frac{b d e x^{4} \log{\left (c \right )}}{2} + \frac{b e^{2} n x^{6} \log{\left (x \right )}}{6} - \frac{b e^{2} n x^{6}}{36} + \frac{b e^{2} x^{6} \log{\left (c \right )}}{6} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.86026, size = 166, normalized size = 2.18 \begin{align*} \frac{1}{6} \, b n x^{6} e^{2} \log \left (x\right ) - \frac{1}{36} \, b n x^{6} e^{2} + \frac{1}{6} \, b x^{6} e^{2} \log \left (c\right ) + \frac{1}{2} \, b d n x^{4} e \log \left (x\right ) + \frac{1}{6} \, a x^{6} e^{2} - \frac{1}{8} \, b d n x^{4} e + \frac{1}{2} \, b d x^{4} e \log \left (c\right ) + \frac{1}{2} \, a d x^{4} e + \frac{1}{2} \, b d^{2} n x^{2} \log \left (x\right ) - \frac{1}{4} \, b d^{2} n x^{2} + \frac{1}{2} \, b d^{2} x^{2} \log \left (c\right ) + \frac{1}{2} \, a d^{2} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]